﻿using AEFunction;
using ESRI.ArcGIS.Carto;
using System;
using System.Windows.Forms;

namespace AETools.UI
{
    public partial class frmSelectForecastLayer : Form
    {
        public frmSelectForecastLayer()
        {
            InitializeComponent();
        }
                public ILayer[] Layers;

                public frmSelectForecastLayer(ILayer[] layers)
        {
            InitializeComponent();
            foreach (ILayer l in layers)
            {
                if (l is IRasterLayer)
                {
                    this.comboBoxYear96.Items.Add((object)l.Name);
                }
            }
            Layers = layers;
        }

        /// <summary>
        /// 需要做模拟的图层
        /// </summary>
                public IRasterLayer pForecastLayer = null;
        private void buttonOk_Click_1(object sender, EventArgs e)
        {
            pForecastLayer = ArcEngineFunction.GetLayerByName(Layers, this.comboBoxYear96.SelectedItem.ToString()) as IRasterLayer;
        }
    }
}
